package com.yilin.tms.order.service.clearing;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yilin.tms.core.application.PageData;
import com.yilin.tms.core.entity.order.clearing.GatherRecord;
import com.yilin.tms.core.entity.order.transit.TransitOrder;
import com.yilin.tms.core.entity.user.account.Account;

import java.util.List;

public interface IGatherService extends IService<GatherRecord> {
    GatherRecord createGatherRecord(Account loginUser, List<TransitOrder> transitOrderList);

    void updateGatherRecord(Account loginUser, GatherRecord fromRecord);

    void sureGatherRecord(Account loginUser, String gatherRecordId, Boolean sureClearing);

    PageData<GatherRecord> getGatherRecordPage(Account loginUser, GatherRecord query, Integer page, Integer limit);

    void scrapGatherRecord(String gatherRecordId, String scrapReason,Account loginUser);

    void gatherAutoSure();
}
